import store from '@/store'
window.addEventListener('resize', () => {
  // 获取屏幕尺寸
  const width = document.documentElement.clientWidth || document.body.clientWidth
  if (width < 768) {
    store.commit('base/COLLAPSE_MENU')
  }
})
